#ifndef FOC_ADC_H
#define FOC_ADC_H



#include "main.h"


typedef struct
{
	float A;
	float B;
	float C;
	float alpha;
	float beta;
	float q;
	float d;
}FOC_Struct;


extern FOC_Struct FOC_Current,FOC_Voltage;


void ADC_GetVoltage(void);
void Get_offset(void);
void ADC_GetCurrent(void);
void ADC_GetFOCcurrent(float angle);












#endif











